
package com.ruoyi.client.pojo.form;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 保存订单param
 */
@Data
public class OrderInsertForm {

    @NotNull(message = "addressId不能为空")
    private Long addressId; //地址id

    private String remark;//备注

    @NotEmpty(message = "订单项不能为空")
    private List<OrderItemInsertForm> productList; //订单项数组
}
